<?php /* Smarty version Smarty-3.0.7, created on 2011-09-11 17:49:38
         compiled from "D:\AonzWebDev\InnanaWorkspace\InnanaWebProject/themes/innana/./webboard-pagination.tpl" */ ?>
<?php /*%%SmartyHeaderCode:160494e6c9242830a83-40352193%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '83dfbcc6e108eba13be440a935ccc6fe8d0bed43' => 
    array (
      0 => 'D:\\AonzWebDev\\InnanaWorkspace\\InnanaWebProject/themes/innana/./webboard-pagination.tpl',
      1 => 1315735528,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '160494e6c9242830a83-40352193',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<div id="webboard-pagination">
	<?php if (($_smarty_tpl->getVariable('selected_page')->value>1)){?>
		<a class="first" href="webboard.php?<?php echo $_smarty_tpl->getVariable('page_type')->value;?>
=<?php echo $_smarty_tpl->getVariable('topic_id')->value;?>
.1">First</a>
	<?php }else{ ?>
		<span class="disable">First<span>
	<?php }?>
	
	<?php if (($_smarty_tpl->getVariable('selected_page')->value-1)>=1){?>
		<a class="prev" href="webboard.php?<?php echo $_smarty_tpl->getVariable('page_type')->value;?>
=<?php echo $_smarty_tpl->getVariable('topic_id')->value;?>
.<?php echo $_smarty_tpl->getVariable('selected_page')->value-1;?>
">Previous</a>
	<?php }else{ ?>
		<span class="disable">Previous<span>
	<?php }?>
	
	<?php if ($_smarty_tpl->getVariable('remote_first_page_visible')->value){?>
		<a class="first" href="webboard.php?<?php echo $_smarty_tpl->getVariable('page_type')->value;?>
=<?php echo $_smarty_tpl->getVariable('topic_id')->value;?>
.1">1</a>
		<?php if ($_smarty_tpl->getVariable('page_group_start')->value-1>1){?>
		...
		<?php }?>
	<?php }?>
	
	<?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']['page']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['page']['name'] = 'page';
$_smarty_tpl->tpl_vars['smarty']->value['section']['page']['start'] = (int)$_smarty_tpl->getVariable('page_group_start')->value;
$_smarty_tpl->tpl_vars['smarty']->value['section']['page']['loop'] = is_array($_loop=$_smarty_tpl->getVariable('page_group_end')->value+1) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['page']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['page']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['page']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['page']['step'] = 1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['page']['start'] < 0)
    $_smarty_tpl->tpl_vars['smarty']->value['section']['page']['start'] = max($_smarty_tpl->tpl_vars['smarty']->value['section']['page']['step'] > 0 ? 0 : -1, $_smarty_tpl->tpl_vars['smarty']->value['section']['page']['loop'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['page']['start']);
else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['page']['start'] = min($_smarty_tpl->tpl_vars['smarty']->value['section']['page']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['page']['step'] > 0 ? $_smarty_tpl->tpl_vars['smarty']->value['section']['page']['loop'] : $_smarty_tpl->tpl_vars['smarty']->value['section']['page']['loop']-1);
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['page']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['page']['total'] = min(ceil(($_smarty_tpl->tpl_vars['smarty']->value['section']['page']['step'] > 0 ? $_smarty_tpl->tpl_vars['smarty']->value['section']['page']['loop'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['page']['start'] : $_smarty_tpl->tpl_vars['smarty']->value['section']['page']['start']+1)/abs($_smarty_tpl->tpl_vars['smarty']->value['section']['page']['step'])), $_smarty_tpl->tpl_vars['smarty']->value['section']['page']['max']);
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['page']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['page']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['page']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['page']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['page']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['page']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['page']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['page']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['page']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['page']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['page']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['page']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['page']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['page']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['page']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['page']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['page']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['page']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['page']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['page']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['page']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['page']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['page']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['page']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['page']['total']);
?>
		<?php if ($_smarty_tpl->getVariable('smarty')->value['section']['page']['index']==$_smarty_tpl->getVariable('selected_page')->value){?>
			<a class="selected" href="webboard.php?<?php echo $_smarty_tpl->getVariable('page_type')->value;?>
=<?php echo $_smarty_tpl->getVariable('topic_id')->value;?>
.<?php echo $_smarty_tpl->getVariable('smarty')->value['section']['page']['index'];?>
"><b><?php echo $_smarty_tpl->getVariable('smarty')->value['section']['page']['index'];?>
</b></a>
		<?php }else{ ?>
			<a class="unselected" href="webboard.php?<?php echo $_smarty_tpl->getVariable('page_type')->value;?>
=<?php echo $_smarty_tpl->getVariable('topic_id')->value;?>
.<?php echo $_smarty_tpl->getVariable('smarty')->value['section']['page']['index'];?>
"><?php echo $_smarty_tpl->getVariable('smarty')->value['section']['page']['index'];?>
</a>
		<?php }?>
	<?php endfor; endif; ?>
	
	<?php if ($_smarty_tpl->getVariable('remote_last_page_visible')->value){?>
		<?php if ($_smarty_tpl->getVariable('page_group_end')->value+1<$_smarty_tpl->getVariable('total_page_count')->value){?>
		...
		<?php }?>
		<a class="last" href="webboard.php?<?php echo $_smarty_tpl->getVariable('page_type')->value;?>
=<?php echo $_smarty_tpl->getVariable('topic_id')->value;?>
.<?php echo $_smarty_tpl->getVariable('total_page_count')->value;?>
"><?php echo $_smarty_tpl->getVariable('total_page_count')->value;?>
</a>
	<?php }?>
	
	<?php if (($_smarty_tpl->getVariable('selected_page')->value+1)<=$_smarty_tpl->getVariable('total_page_count')->value){?>
		<a class="next" href="webboard.php?<?php echo $_smarty_tpl->getVariable('page_type')->value;?>
=<?php echo $_smarty_tpl->getVariable('topic_id')->value;?>
.<?php echo $_smarty_tpl->getVariable('selected_page')->value+1;?>
">Next</a>
	<?php }else{ ?>
		<span class="disable">Next<span>
	<?php }?>
	
	<?php if (($_smarty_tpl->getVariable('selected_page')->value<$_smarty_tpl->getVariable('total_page_count')->value)){?>
		<a class="last" href="webboard.php?<?php echo $_smarty_tpl->getVariable('page_type')->value;?>
=<?php echo $_smarty_tpl->getVariable('topic_id')->value;?>
.<?php echo $_smarty_tpl->getVariable('total_page_count')->value;?>
">Last</a>
	<?php }else{ ?>
		<span class="disable">Last<span>
	<?php }?>
</div>